package com.wuyoucar.entity;

import java.io.Serializable;
import java.util.Date;

public class TUser implements Serializable {
    private Integer userid;
    private String  username;
    private String  usertel;
    private String  password;
    private String  userstate; //用户状态
    private Date    createtime;
    private Date    lastmodifytime;
    private Integer role; //用户角色
    private TUserinfo tUserinfo;

    public TUser() {
    }

    public TUser(Integer userid, String username, String usertel, String password, String userstate, Date createtime, Date lastmodifytime, Integer role) {
        this.userid = userid;
        this.username = username;
        this.usertel = usertel;
        this.password = password;
        this.userstate = userstate;
        this.createtime = createtime;
        this.lastmodifytime = lastmodifytime;
        this.role = role;
    }

    public TUser(Integer userid, String password) {
        this.userid= userid;
        this.password = password;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getUsertel() {
        return usertel;
    }

    public void setUsertel(String usertel) {
        this.usertel = usertel;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUserstate() {
        return userstate;
    }

    public void setUserstate(String userstate) {
        this.userstate = userstate;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Date getLastmodifytime() {
        return lastmodifytime;
    }

    public void setLastmodifytime(Date lastmodifytime) {
        this.lastmodifytime = lastmodifytime;
    }

    public Integer getRole() {
        return role;
    }

    public void setRole(Integer role) {
        this.role = role;
    }

    public TUserinfo gettUserinfo() {
        return tUserinfo;
    }

    public void settUserinfo(TUserinfo tUserinfo) {
        this.tUserinfo = tUserinfo;
    }

    @Override
    public String toString() {
        return "TUser{" + "userid=" + userid + ", username='" + username + '\'' + ", usertel='" + usertel + '\'' + ", password='" + password + '\'' + ", userstate='" + userstate + '\'' + ", createtime=" + createtime + ", lastmodifytime=" + lastmodifytime + ", role=" + role + ", tUserinfo=" + tUserinfo + '}';
    }
}
